#define _CRT_SECURE_NO_WARNINGS
#include"Tree.h"
tree* CreateNode()
{
	tree* node1 = BuyNode(1);
	tree* node2 = BuyNode(2);
	tree* node3 = BuyNode(3);
	tree* node4 = BuyNode(4);
	tree* node5 = BuyNode(5);
	tree* node6 = BuyNode(6);
	tree* node7 = BuyNode(7);
	node1->left = node2;
	node1->right = node4;
	node2->left = node3;
	
	node4->left = node5;
	node4->right = node6;
	return node1;
}
int main()
{
	tree* root=CreateNode();
	//Preorder(root);
	//printf("\n");
	//Inorder(root);
	//printf("\n");
	//Postorder(root);
	//printf("\n");
	//printf("%d", TreeSize(root, 0));

	printf("%d", BinaryTreeComplete(root));


}